package com.econ.powercloud.ems.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author jwc
 * @date 2023/05/08
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SystemSvgVO {

    @ApiModelProperty("svg图id")
    private Integer id;

    @NotBlank(message = "名称不能为空")
    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("父级svg的id不能为空")
    private Integer parentId;

    @ApiModelProperty("分类配置信息")
    private String config;

    @NotBlank(message = "内容不能为空")
    @ApiModelProperty("内容")
    private String source;

    @NotNull(message = "tag不能为空")
    @ApiModelProperty("tag")
    private String tag;

    @NotNull(message = "类型不能为空")
    @ApiModelProperty("类型")
    private Integer type;

    @NotBlank(message = "关联id不能为空")
    @ApiModelProperty("关联id")
    private String relationId;

    @ApiModelProperty("关联类型(如：储能站id)")
    private String relationType;
}
